<?php // no direct access
defined('_JEXEC') or die('Restricted access'); 
$date = $item->created;
$date = date('l F d, Y', strtotime($date));
?>
<div class="s5_sn_wrap_1" style="font-weight:normal; background:none; padding:0px; margin:0px">

	<a style="font-weight:normal; background:none; display:block; padding:0px; margin:0px; margin-bottom:<?php echo $params->get('title_1_margin') ?>px; font-size:<?php echo $params->get('title_1_size') ?>px; cursor:pointer" class="s5_sn_1_title" href="<?php echo $item->linkOn;?>"><?php echo substr($item->title, 0, $params->get('characters_1_title')) ?></a>

	<?php if ($params->get('create_date_1') == 1) { ?>
		<div style="font-weight:normal; background:none; display:block; padding:0px; margin:0px; margin-bottom:<?php echo $params->get('date_1_margin') ?>px; font-size:<?php echo $params->get('date_1_size') ?>px" class="s5_sn_1_date"><?php echo $date; ?></div>
	<?php } ?>

	<div style="font-weight:normal; background:none; display:block; padding:0px; margin:0px; margin-bottom:<?php echo $params->get('text_1_margin') ?>px; font-size:<?php echo $params->get('text_1_size') ?>px" class="s5_sn_1_text"><?php echo substr($item->text, 0, $params->get('characters_1_text')) ?></div>

    <?php if (isset($item->linkOn) && $item->readmore && $params->get('readmore')) { ?>
		<div class="font-weight:normal; s5_sn_1_read_wrap" style="padding:0px; margin:0px; display:block; width:100%; margin-bottom:<?php echo $params->get('read_1_margin') ?>px">
			<a onmouseover="this.style.textDecoration='underline'; this.style.background='#<?php echo $params->get('read_1_color_hover') ?>'; this.style.background='#<?php echo $params->get('read_1_bg_hover') ?>';" onmouseout="this.style.textDecoration='none'; this.style.background='#<?php echo $params->get('read_1_color') ?>'; this.style.background='#<?php echo $params->get('read_1_bg') ?>';" style="float:<?php echo $params->get('read_1_float') ?>; font-weight:normal; background:none; color:#<?php echo $params->get('read_1_color') ?>; background:#<?php echo $params->get('read_1_bg') ?>; padding:<?php echo $params->get('read_1_padding') ?>px; padding-bottom:<?php echo $params->get('read_1_padding') - 2 ?>px; padding-top:<?php echo $params->get('read_1_padding') - 2 ?>px; margin:0px; font-size:<?php echo $params->get('read_1_size') ?>px; cursor:pointer" class="s5_sn_1_readmore" href="<?php echo $item->linkOn ?>"><?php echo $params->get('readmore_text') ?></a>
			<div style="clear:both"></div>
		</div>
    <?php } ?>
	
</div>

